package com.xinliu.fastchat.service.impl;

import com.xinliu.fastchat.context.BaseContext;
import com.xinliu.fastchat.domain.po.Friend;
import com.xinliu.fastchat.domain.vo.FriendVo;
import com.xinliu.fastchat.mapper.FcFriendMapper;
import com.xinliu.fastchat.service.IFriendService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 心流
 * @since 2025-10-01
 */
@Service
public class FriendServiceImpl extends ServiceImpl<FcFriendMapper, Friend> implements IFriendService {


    @Override
    public List<FriendVo> friendList() {

        /*List<Friend> fcFriends = baseMapper.selectList(new LambdaQueryWrapper<Friend>()
                .eq(Friend::getUserId, BaseContext.getId())
                .eq(Friend::getIsDeleted, 0));*/

        return baseMapper.friendList(BaseContext.getId());
    }
}
